package model.roomManagement.Interface;

import java.io.File;
import java.net.InetSocketAddress;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;

public interface IServer extends Remote {

public int loginCheck(int userId, String password)throws RemoteException ;
public int creatRoom(int userId,String subject,String password)throws RemoteException ;
public boolean deletRoom(int userId,int roomId)throws RemoteException ;
public boolean userEnter(int userId,int roomId)throws RemoteException ;

public boolean userJoin(int userId,int roomId,String password)throws RemoteException ;
public boolean userQuit(int userId,int roomId)throws RemoteException ;
public ArrayList getUserByRId(int roomId)throws RemoteException ;
public ArrayList getRoomByUId(int userId)throws RemoteException ;




IUser getUserById(int id)throws RemoteException;
public ArrayList<String> getCurrentInfoByRoomId(int roomId)throws RemoteException;
public String getRoomInfoByRId(int roomId)throws RemoteException;





public boolean addAudioAddress(int userID, InetSocketAddress ad)throws RemoteException;

public boolean changePassWord(int userId, String oldPassword,
		String newPassword)throws RemoteException;





}
